package com.citcc4.traffic.data.domain.record;

import java.io.Serializable;
import java.util.Date;

public class RecordCommonErrorEntity implements Serializable {
    private Integer id;

    /**
     * 出错步骤名称
     */
    private String stepName;

    /**
     * 出错时间
     */
    private Date errorTime;

    /**
     * 出错信息
     */
    private String errorInfo;

    /**
     * 出错相关的id，有可能是图片id，工单id等等
     */
    private String importantId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getStepName() {
        return stepName;
    }

    public void setStepName(String stepName) {
        this.stepName = stepName == null ? null : stepName.trim();
    }

    public Date getErrorTime() {
        return errorTime;
    }

    public void setErrorTime(Date errorTime) {
        this.errorTime = errorTime;
    }

    public String getErrorInfo() {
        return errorInfo;
    }

    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo == null ? null : errorInfo.trim();
    }

    public String getImportantId() {
        return importantId;
    }

    public void setImportantId(String importantId) {
        this.importantId = importantId == null ? null : importantId.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", stepName=").append(stepName);
        sb.append(", errorTime=").append(errorTime);
        sb.append(", errorInfo=").append(errorInfo);
        sb.append(", importantId=").append(importantId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}